package asava.trees;

import java.util.List;

/**
 * @author Tim Richter
 */
public final class Switch extends Tree {
    public Tree selector;
    public List<Tree> cases;

    public Switch(final Tree selector,
                  final List<Tree> cases) {
        this.selector = selector;
        this.cases = cases;
    }

    @Override
    public int kind() {
        return TreeKind.SWITCH;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
